package com.muyu.cloud.commodity.domain.req;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author <a href="mailto:602048165@qq.com">60204</a>
 * @version 1.0
 * @description:
 * @date 2025/9/16 10:58
 */
@Data
public class ProductSkuUpdateReq {
    private Long id;
    @NotBlank(message = "SKU编码不能为空")
    private String skuCode;
    @NotNull(message = "销售价不能为空")
    private BigDecimal salePride;

    private BigDecimal costPrice;
    private Integer stock;
    private String image;
    private Integer status;

    @NotEmpty(message = "规格值列表不能为空")
    private List<Long> specValueIds;

    private Boolean isNew = false; //
}
